import pytest
# @pytest.fixture()
# def some_data():
#     return 42
#
# def test_some_data(some_data):
#     assert some_data==42
#

def test_func(func1):
    assert 1==1
    print(func1)

if __name__ == '__main__':
    pytest.main(['-vs','fixture最简单使用.py'])